<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.19.2/axios.js"></script>
</head>
<body>
    <button>发送数据</button>
    <script>
        document.querySelector('button').addEventListener('click',()=>{
            axios.get('http://127.0.0.1:666/?name=jimmt&age=22').then(res=>{
                console.log(res)
            })
        })
    </script>
</body>
</html>